package com.caidanxiaoyuan.mapper;

import java.util.List;

import com.caidanxiaoyuan.model.BaseModel;


/**
 * 
 * @author zhaoyulong
 *
 * @param <T>
 */
public interface BaseMapper<T extends BaseModel> {
	
    int deleteByPrimaryKey(String id);
    
    int deleteByPrimaryKey(Integer id);

    int insert(T record);
    
    int insertSelective(T record);

    T selectByPrimaryKey(String id);
    
    T selectByPrimaryKey(Integer id);
    
    int updateByPrimaryKey(T record);
    
    int updateByPrimaryKeySelective(T record);
    
    List<T> selectAll();
    
    List<T> selectAllByWhere(T t);
    
    List<T> selectByUs(T t);
	
}
